const ws = new WeakSet()   // WeakSet只能放对象和Symbol的值

ws.add({})
ws.add(Symbol(1))      




var a=1
var obj={n:2}


var www = new WeakSet(obj)   //把对象放在WeakSet()里面会被提前回收
